<!--
 *  Copyright (c) 2005 eRocX Software Group - www.erocx.com
 *
 *  @author     <a href="mailto:eroclu@gmail.com">Andy Lu</a>
 *  @date       10/29/05
-->

<%@ include file="/common/init.jsp" %>

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  <meta name="keywords" content="photos, photo, digital photos, prints, pictures, photograph"/>
  <meta name="description" content="Order digital photo prints online at ColorBox"/>
  <title><spring:message code="home.title"/></title>
  <link rel="stylesheet" href="/images/main.css" type="text/css"/>

  <script	language="javascript" type="text/javascript">
  <!--
  function doLogin() {
      document.cobForm.submit();
  }

  function doRegister() {
      document.location.href="/security/register.jsp";
  }
  -->
  </script>
</head>
<body>
<table width="750" align="center" cellpadding="0" cellspacing="0" border="0">
  <tr><td colspan="3" height="1"></td></tr>
  
  <!-- app header -->
  <tr><td colspan="3" height="25" align="right">
    <%@ include file="common/header.jsp" %>
  </td></tr>
  <!-- /app header -->

  <tr>
    <td width="560" colspan="2"><img src="images/home_top_bg.jpg"/></td>
    <td width="190" valign="top">
      <form name="cobForm" action="/login.do" method="post" style="margin:0">
      <input type="hidden" name="cobAction" value="doLogin">
      <table width="100%" cellpadding="2" cellspacing="0" class="loginbox">
        <tr><td colspan="2" class="logintitle"><spring:message code="home.login.title"/></td></tr>
        <tr><td colspan="2" height="1"></td></tr>
        <%
            //User user = (User) request.getSession().getAttribute(AppConsts.kUSER);            

            //if (user == null) {
        %>
        <tr>
          <td width="20%" align="right"><spring:message code="home.login.email"/></td>
          <td width="80%"><input type="text" name="email" class="input" size="20" maxlength="50"/></td>
        </tr>
        <tr>
          <td width="20%" align="right"><spring:message code="home.login.password"/></td>
          <td width="80%"><input type="password" name="password" class="input" size="20" maxlength="32"/></td>
        </tr>
        <tr><td colspan="2" align="center"><input type="checkbox" name="autoLogin"/><spring:message code="home.login.autologin"/>&nbsp;&nbsp;&nbsp;&nbsp;[<a href=""><spring:message code="home.login.forgetpasswd"/></a>]</td></tr>
        <tr><td colspan="2" height="1"></td></tr>
        <tr><td colspan="2" align="center"><input type="submit" class="button" onclick="javascript:doLogin()" value="<spring:message code="home.login.submit"/>"/>&nbsp;&nbsp;&nbsp;<input type="button" class="button" onclick="javascript:doRegister()" value="<spring:message code="home.login.register"/>"/></td>
        </tr>
        <tr><td colspan="2" height="12"></td></tr>
        <%
            //} else {  
        %>
        
        <%
            //}
        %>
      </table>
      </form>
    </td>
  </tr>

  <tr><td colspan="3" height="4"></td></tr>

  <tr>
    <td colspan="3"><img src="/images/home_bottom_bg.jpg"/></td>
  </tr>
</table>

<%@ include file="/common/footer.jsp" %>
</body>
</html>